package cn.devices.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 设备出借表
 * </p>
 *
 * @author 秋水浮萍
 * @since 2021-02-07
 */

public class TbBorrow implements Serializable {



    private String borrowId;

    /**
     * 设备编号
     */
    private String deviceCode;

    /**
     * 用户编号
     */
    private String userId;

    /**
     * 出借人照片
     */
    private String borrowImage;

    /**
     * 出借时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "Asia/Shanghai")
    private Date borrowTime;

    /**
     * 归还人照片
     */
    private String retImage;

    /**
     * 归还时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "Asia/Shanghai")
    private Date retTime;

    /**
     * 记录事项
     */
    private String borrowSpec;

    public String getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(String borrowId) {
        this.borrowId = borrowId;
    }



    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getBorrowImage() {
        return borrowImage;
    }

    public void setBorrowImage(String borrowImage) {
        this.borrowImage = borrowImage;
    }

    public Date getBorrowTime() {
        return borrowTime;
    }

    public void setBorrowTime(Date borrowTime) {
        this.borrowTime = borrowTime;
    }

    public String getRetImage() {
        return retImage;
    }

    public void setRetImage(String retImage) {
        this.retImage = retImage;
    }

    public Date getRetTime() {
        return retTime;
    }

    public void setRetTime(Date retTime) {
        this.retTime = retTime;
    }

    public String getBorrowSpec() {
        return borrowSpec;
    }

    public void setBorrowSpec(String borrowSpec) {
        this.borrowSpec = borrowSpec;
    }
}
